package calendar.messages;

import edu.gmu.middleware.Message;
import edu.gmu.streams.BlockInputStream;
import edu.gmu.streams.BlockOutputStream;
import java.io.IOException;

/* this class represents a calendar event */
public class ConnectResponse implements Message
{ 
  public boolean result;

  public ConnectResponse()
  {
    this.result = false;
  }



  public void marshal(BlockOutputStream stream) throws IOException
  {
    stream.writeBoolean( result );
  }

  public void unmarshal(BlockInputStream stream) throws IOException
  {
    this.result = stream.readBoolean();
  }
}
